﻿namespace SendKeys.Config
{
	using System.Configuration;

	[ConfigurationCollection(typeof(RegisteredAppElement))]
	public class RegisteredAppsCollection : ConfigurationElementCollection
	{
		protected override ConfigurationElement CreateNewElement()
		{
			return new RegisteredAppElement();
		}

		protected override object GetElementKey(ConfigurationElement element)
		{
			return ((RegisteredAppElement)(element)).ProcessName;
		}

		public RegisteredAppElement this[int index]
		{
			get
			{
				return (RegisteredAppElement)BaseGet(index);
			}
		}
	}
}
